package com.wlyuan.open.translator;

import com.wlyuan.basic.dto.goods.GoodsDetailDTO;
import com.wlyuan.open.basic.vo.OpenGoodsDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @author
 * 承运商 OpenDTO -> 业务DTO
 */
public class GoodsTranslator {
    @Mapper(
    )
    public interface Translator {

        OpenGoodsDetailVO translate(GoodsDetailDTO source);
    }

    private static final Translator TRANSLATOR = Mappers.getMapper(Translator.class);

    public static OpenGoodsDetailVO translate(GoodsDetailDTO source){
        return TRANSLATOR.translate(source);
    }

}
